<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    img{
      /*行内或行内块元素垂直对其方式*/
      vertical-align: top;/*上对齐*/
      vertical-align: bottom;/*下对齐*/
      vertical-align: middle;/*中间对齐*/
      vertical-align: baseline;/*基线对齐(默认)*/
    }
  </style>
</head>
<body>
<input type="text"><img src="../b.jpg" width="100">
</body>
</html>